﻿namespace PortableRiotGames.Interfaces.Summoner
{
    using Newtonsoft.Json;
    using PortableRiotGames.Infrastructure;
    using PortableRiotGames.Infrastructure.Converters;
    using System;

    [JsonObject(MemberSerialization.OptIn)]
    public sealed class GetSummonerResponse : ResponseBase
    {
        /// <summary>
        /// Summoner ID.
        /// </summary>
        [JsonProperty("id")]
        public long ID { get; set; }

        /// <summary>
        /// Summoner name.
        /// </summary>
        [JsonProperty("name")]
        public string Name { get; set; }

        /// <summary>
        /// ID of the summoner icon associated with the summoner.
        /// </summary>
        [JsonProperty("profileIconId")]
        public int ProfileIconID { get; set; }

        /// <summary>
        /// Date summoner was last modified converted from epoch milliseconds.
        /// </summary>
        [JsonProperty("revisionDate")]
        [JsonConverter(typeof(JsonDateTimeMiliConverter))]
        public DateTime RevisionDate { get; set; }

        /// <summary>
        /// Summoner level associated with the summoner.
        /// </summary>
        [JsonProperty("summonerLevel")]
        public int SummonerLevel { get; set; }
    }
}